﻿@using EasyDocFlow.Web.Models

@model RegisterModel
@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2 class="page-title">Register</h2>
@using (Html.BeginForm())
{
    <table class="fields-container">
        <tr>
            <td colspan="2" class="info">@Html.ValidationMessage("RegisterFailed")</td>
        </tr>
        <tr>
            <td class="title">Username</td>
            <td class="field">
                @Html.TextBoxFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td class="title">Email</td>
            <td class="field">
                @Html.TextBoxFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td class="title">Password</td>
            <td class="field">
                @Html.PasswordFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </td>
        </tr>
        <tr>
            <td class="title">Confirm Password</td>
            <td class="field">
                @Html.PasswordFor(model => model.ConfirmPassword)
                @Html.ValidationMessageFor(model => model.ConfirmPassword)
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="Register" /></td>
        </tr>
    </table>
}